class CreateSongs < ActiveRecord::Migration
  def self.up
    #The same as mpd, for easyness
    
    create_table :songs do |t|
      t.string :artist, :album, :title, :genre, :file, :directory, :composer, :date, :performer, :disc
      t.integer :track, :time
      t.timestamps
    end
    
    add_index :songs, [:file]
  end

  def self.down
    drop_table :songs
  end
end
